package com.atguigu.tingshu.order.mapper;

import com.atguigu.tingshu.model.order.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
    /**
     * 分页查询 获取用户订单
     * @author Petrichor
     * @date 2024/1/9 20:48
     * @param page 分页查询对象
     * @param userId 用户id
     * @return 分页的订单数据
     **/
    IPage<OrderInfo> selectListByUserId(Page<OrderInfo> page, Long userId);
}
